// 暂时禁用生命周期混入，避免组件冲突
// import lifecycleMixin from './lifecycleMixin.js';

let mixin = {
	data() {
		return {
			title: '惠邻生活',
			imgUrl: ''
		}
	},
	created() {
		//#ifdef MP-WEIXIN
		wx.showShareMenu({
			withShareTicket: true,
			menus: ['shareAppMessage', 'shareTimeline']
		});
		//#endif
	},
	onShareAppMessage(res) {
		return {
			title: this.title,
			imageUrl: this.imgUrl
		}
	},
	onShareTimeline(res) {
		return {
			title: this.title,
			imageUrl: this.imgUrl
		}
	},
	methods: {}
	
	// 暂时禁用生命周期优化混入
	// ...lifecycleMixin
}

export default mixin;